package cn.wch.blelib.peripheral.builder.constant;

/**特征权限*/
public class CharacteristicPermission {
    /**特征读取权限*/
    public static final int PERMISSION_READ = 0x01;

    /**特征权限：允许加密读取操作*/
    public static final int PERMISSION_READ_ENCRYPTED = 0x02;

    /**特征权限：允许中间人保护阅读*/
    public static final int PERMISSION_READ_ENCRYPTED_MITM = 0x04;

    /**特征写入权限*/
    public static final int PERMISSION_WRITE = 0x10;

    /**特征权限：允许加密写入*/
    public static final int PERMISSION_WRITE_ENCRYPTED = 0x20;

    /**特征权限：允许使用中间人保护进行加密写入*/
    public static final int PERMISSION_WRITE_ENCRYPTED_MITM = 0x40;

    /**特征权限：允许签名写入操作*/
    public static final int PERMISSION_WRITE_SIGNED = 0x80;

    /**特征权限：允许有中间人保护的签名写操作*/
    public static final int PERMISSION_WRITE_SIGNED_MITM = 0x100;
}
